
package com.utilstest.jsonutils.beans;

import java.util.ArrayList;
import java.util.List;

import com.utils.jsonutils.annotation.ItemType;

public class Fields {

	private int length;
	private String name;

	@ItemType(value = PickListValues.class, canEmpty = false)
	private List<PickListValues> picklistValues;

	public void setLength(int length) {
		this.length = length;
	}

	public int getLength() {
		return length;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void addPicklistValues(PickListValues picklistValues) {
		if(this.picklistValues == null)
			this.picklistValues = new ArrayList<PickListValues>();
		this.picklistValues.add(picklistValues);
	}

	public List<PickListValues> getPicklistValues() {
		return picklistValues;
	}
}
